﻿@{
    IEnumerable<Navigation> navigations = ViewData.Get<IEnumerable<Navigation>>("Navigations", null);
    var currentUser = UserContext.CurrentUser;
    string search = ViewData.Get<string>("search", null);
    var registrationMode = DIContainer.Resolve<IUserSettingsManager>().Get().RegistrationMode;
    bool groupIsEnable = ViewData.Get<bool>("groupIsEnable", false);
    Navigation navigation = null;
    foreach (var nav in navigations)
    {
        if (nav.ApplicationId == 1011)
        {
            navigation = nav;
        }
    }
    
}
<script type="text/javascript">
    //设为首页
    function SetHome(obj, url) {
        try {
            obj.style.behavior = 'url(#default#homepage)';
            obj.setHomePage(url);
        } catch (e) {
            if (window.netscape) {
                try {
                    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                } catch (e) {
                    alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
                }
            } else {
                alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将【" + url + "】设置为首页。");
            }
        }
    }

    //收藏本站
    function AddFavorite(title, url) {
        try {
            window.external.addFavorite(url, title);
        }
        catch (e) {
            try {
                window.sidebar.addPanel(title, url, "");
            }
            catch (e) {
                alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加");
            }
        }
    }

</script>
<!--[if IE 6]>
<script type="text/javascript" src="@(Tunynet.Utilities.WebUtility.ResolveUrl("~/Scripts/jquery/DD_belatedPNG/jquery.DD_belatedPNG-0.0.8a.js"))"></script>
<![endif]-->
<div class="headerwrapper">
    <div class="header clr">
        <div class="header-inner">
            <h1 class="logo"><a href="@SiteUrls.Instance().SiteHome()" title="爱驿站"><span class="hide-clip">爱驿站</span></a></h1>
            <div class="toolbar">
                <ul>
                    <li><a href="#">红娘热线：400-601-521</a></li>
                    <li><a href="#">在线客服</a>  |</li>
                    <li><a href="javascript:void(0);" onclick="AddFavorite('爱驿站',location.href)">收藏本站</a>  |</li>
                    <li><a href="#">手机版</a>  |</li>
                </ul>
            </div>
        </div>
        <div class="nav">
            <div style=" width:1024px; margin:0 auto; padding:0px;">
                <ul>
                    <li><a href="@SiteUrls.Instance().SiteHome()" target="_self">首页</a></li>
                    <li><a href="/finduser/home.aspx" target="_self">搜索</a></li>
                    <li><a href="@(currentUser==null?"/account/login.aspx":"/Channel/ZMemberDetail.aspx?spaceKey="+currentUser.UserName)" target="_self">我的驿站</a></li>
                    <li><a href="/cms/c-1.aspx" target="_self">加入我们</a></li>
                    <li><a href="/Channel/ZMemberActivities.aspx" target="_self">最新活动</a></li>
                    <li><a href="/Channel/AnnouncementList.aspx" target="_self">驿站通告</a></li>
                    <li><a href="/cms/c-2.aspx" target="_self">法律声明</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>